<?php #//AJAX PHP PENNY AUCTION v.1.1

#///////////////////////////////////////////////////////////
#//  COPYRIGHT 2009 Aaron Helmlinger ALL RIGHTS RESERVED  //
#///////////////////////////////////////////////////////////
                        include "../includes/config.inc.php";
         include "loggedin.inc.php";
include "../includes/countries.inc.php";
    
             
             
      
      
      
                               
          if($_POST[update])  {

       
       $bids_remaining = $_POST['bids_remaining'];
      $userid = $_POST['userid'];                         
    
$query2="UPDATE PHPAUCTIONXL_users SET bids_remaining='$bids_remaining' WHERE id='$userid'";
       
mysql_query($query2);


             
               $URL = $_SESSION["RETURN_LIST"]."?PAGE=".$_SESSION['RETURN_LIST_PAGE'];
            unset($_SESSION["RETURN_LIST"]);
            header("Location: $URL");
            exit;          
       
         }     
         
         $userid = $_GET['id'];
       
         $query_settings = "select bids_remaining from PHPAUCTIONXL_users where id=$userid";
                             $query_settings2 =  mysql_query ($query_settings);
                                $bids_remaining = mysql_result($query_settings2,0,"bids_remaining");
                                                   
             
             
                      
                                

  ?>
  
  
  
  


<HTML>
<HEAD>
<link rel='stylesheet' type='text/css' href='style.css' />
<link href="css/main.css" rel="stylesheet" type="text/css">
</HEAD>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">





<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td>
    
       <? // -------------------------- Admin Tool Heading --------------------------------------?>
       
       
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="titulo">
        <tr> 
          <td class="icono"><img src="images/users_icon2.gif" width="17" height="23" ></td>
          <td class="breadcrumbs"><p><span><?=$MSG_25_0010?></span>&nbsp;&gt;&gt;&nbsp;<?=$MSG_045?></p></td>
          
             </tr>
      </table>
      
      
      
      </td>
  </tr>
  <tr>
    <td align="center" valign="middle">&nbsp;</td>
  </tr>
    <tr> 
    <td align="center" valign="middle">
    
    
    
<TABLE BORDER=0 WIDTH=100% CELLPADDING=0 CELLSPACING=0 BGCOLOR="#FFFFFF">
<TR>
<TD align="center">
<BR>
<FORM NAME=conf ACTION=<?=basename($_SERVER['PHP_SELF'])?> METHOD=POST>


  <? // -------------------------- LIGHT BLUE TITLE BAR --------------------------------------?>

	<TABLE WIDTH="95%" BORDER="0" CELLSPACING="0" CELLPADDING="0"  class="base" ALIGN="CENTER" style="border:1px solid #ccc;">
		<TR>
			<TD ALIGN=CENTER class=title>
				<p><? print $MSG_AJAX_ADMIN_USER_MANAGER_REFUND_BIDS; ?></p>
			</TD>
		</TR>
		
		
		
		<TR>
		<TD>
		
    
    
    <TABLE WIDTH=100% ALIGN="CENTER" CELLPADDING=0 cellspacing="0" BGCOLOR="#FFFFFF">
		
 <? // -------------------------- ERROR BAR --------------------------------------?>    
 
 <? if ($ERR) { ?>   
    	<TR>
				<TD COLSPAN="2"  class="error"><B>
					<p><? print $ERR; ?></p>
					</B></TD>
			</TR>
	<? } ?>	
    
    	
			
			
 <? // -------------------------- WHITE BAR --------------------------------------?> 			
				
        <TR>
        <TD WIDTH="125"> 
					<p class="blue"><? print $MSG_AJAX_ADMIN_USER_MANAGER_REFUND_BIDS_REMAINING; ?></p>
					</TD>
					
					
				<TD WIDTH="405">
				
	               <input type=text name=bids_remaining size=6 maxlength=6 value="<?echo $bids_remaining; ?>">
						
				 </TD>
			</TR>
			
				
		
		 

		</TABLE>
		    <INPUT TYPE=hidden NAME=userid VALUE=<? print $userid; ?> >
		  <INPUT TYPE=hidden NAME=update VALUE=1 >
		        <INPUT TYPE="submit" NAME="act" VALUE="<? print $MSG_AJAX_ADMIN_USER_MANAGER_REFUND_BIDS; ?>" class="action">
		 </form>
		
		</TD>
		</TR>
	</TABLE>
	</FORM>
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
